export default {
  // tooltip: {
  //   trigger: 'item',
  // },
  // legend: {
  //   top: '5%',
  //   left: 'center',
  // },
  //环形图中间文字
  title: {
    text: '已完成',
    subtext: '70%',
    textStyle: {
      fontSize: 12,
      color: 'rgba(0,0,0,0.65)',
      fontWeight: 400,
    },
    subtextStyle: {
      fontSize: 20,
      color: '#000000',
      fontWeight: 500,
    },
    textAlign: 'center', //图例文字居中显示
    x: '48%', //距离左边的距离
    y: '38%', //距离上边的距离
  },
  series: [
    {
      name: 'Access From',
      type: 'pie',
      radius: ['60%', '70%'],
      avoidLabelOverlap: false,
      itemStyle: {
        borderRadius: 10,
        borderColor: '#fff',
        borderWidth: 2,
      },
      label: {
        show: false,
        position: 'center',
      },
      emphasis: {
        label: {
          show: false,
          fontSize: 16,
          fontWeight: 'bold',
        },
      },
      labelLine: {
        show: false,
      },
      data: [
        { value: 1048, name: 'Search Engine' },
        { value: 300, name: 'Video Ads' },
      ],
    },
  ],
}
